// 行车管理---月卡管理

import request from '@/utils/request'

export function getCardListAPI(params) {
  return request({
    url: '/parking/card/list',
    params
  })
}

// 添加月卡
export function addCardAPI(data) {
  return request({
    url: '/parking/card',
    method: 'post',
    data
  })
}

/**
 * 获取月卡详情
 * @id
 */
export function getCardDetailAPI(id) {
  return request({
    url: `/parking/card/detail/${id}`,
    method: 'get'

  })
}

/**
 * 编辑月卡
 * @data
 */

export function editCardAPI(data) {
  return request({
    url: '/parking/card/edit',
    method: 'put',
    data
  })
}

/**
 * 删除月卡
 * @id
 */
export function deleteCardAPI(ids) {
  return request({
    url: `/parking/card/${ids}`,
    method: 'DELETE'
  })
}

